using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Ui_popup_SetActive : Ui_popup
{
    private Vector3 hidePos = new Vector3(100000, 100000, 100000);
    private Vector2 uiPos;

    public override void Init()
    {
        base.Init();
        uiPos = rect.anchoredPosition;
    }

    public override void PopUp()
    {
        rect.anchoredPosition = uiPos;
    }

    public override void Hide()
    { 
        uiPos = rect.anchoredPosition;
        rect.anchoredPosition = hidePos;
    }
}


